import Home from './view/home';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import zhCN from 'antd/locale/zh_CN';
dayjs.locale('zh-cn');
import { useEffect } from 'react';
import { refer } from '@/component'
import { ConfigProvider, Watermark } from 'antd';
import 'antd/dist/reset.css';
declare global {
    interface Window {
        refer: any
    }
}
function App() {
    window.refer = refer;
    
    useEffect(() => {
        // console.log(1);
    });

    return (
        <ConfigProvider locale={zhCN}>
            <Watermark content={'chenhaojie'}>
                <div className="App">
                    <Home />
                </div>
            </Watermark>
        </ConfigProvider>
    );
}

export default App;
